package com.muyu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @ClassName: UserEntity
 * @Author: Zirun.Xin
 * @Date: 2025/4/25 上午10:29
 * @Version: 1.0
 * @Description: 用户实体
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "user", autoResultMap = true)
public class UserEntity extends BaseEntity {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 住址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 描述
     */
    @TableField(value = "describes")
    private String describes;

    /**
     * 头像
     */
    @TableField(value = "image")
    private String image;

    /**
     * 公司id
     */
    @TableField(value = "company_id")
    private Integer companyId;
}
